package com.example.statemachine.config;

import com.example.statemachine.support.StateTransitionProcessor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class StateMachineStartupLogger {

    private final StateTransitionProcessor stateTransitionProcessor;

    public StateMachineStartupLogger(StateTransitionProcessor stateTransitionProcessor) {
        this.stateTransitionProcessor = stateTransitionProcessor;
    }

    @EventListener(ApplicationReadyEvent.class)
    public void onApplicationReady() {
        log.info("状态机框架启动完成");
        // 这里可以添加更多启动日志
    }
}